#include "prototype.hpp"

int main(int argc, char const* argv[])
{
	AbstractPrototype *p1 = new Prototype();
	cout<<"Before clone:"<<p1->getNumber()<<endl;
	p1->setNumber(150);


	AbstractPrototype *p2 = p1->clone();
	cout<<"clone:"<<p2->getNumber()<<endl;
	p2->setNumber(200);

	cout<<"p1 number = "<<p1->getNumber()<<endl;
	cout<<"p2 number = "<<p2->getNumber()<<endl;

	delete p1;
	delete p2;

	return 0;
}
